home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 2_5.lha / 2_5 / 2_5a_a.c next >
Text File  |  1993-08-08  |  372b  |  15 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / "obvious" solution to print letters and digits
  6. / version 1
  7. include <stream.h>
  8. nt main(int, char**)
  9.  
  10. include "2_5a_a1.c"    /* EXPAND */
  11.    for (ch = '0'; ch <= '9'; ch++)
  12.        cout << chr(ch) << " " << ch << "\n";
  13.    return 0;
  14.  
  15.